<template>
  <pdf :src="pdfUrl" />
</template>

<script setup>
import pdf from "vue3-pdf";
import { ref, watchEffect, computed, nextTick } from "vue";
const props = defineProps({
  url: String,
});

const pdfUrl = computed(() => props.url);
</script>

<style scoped>
#pdfRef {
  border: 1px solid red;
  padding: 10px;
  height: 500px;
}
</style>
